def upper1(lst):
    return [i if not isinstance(i, str) else i.upper() for i in lst ]

def upper(lst):
    return [i.upper() for i in lst if isinstance(i, str)]

print(upper([1,2,3, 'hello', 'da']))